package com.test.fundible.fundible_00_analytics.fundibledata_sdk.fundibleservices;

import android.Manifest;
import android.content.Context;
import android.content.pm.PackageManager;

import androidx.core.content.ContextCompat;

import com.google.gson.Gson;
import com.test.fundible.fundible_00_analytics.fundibledata_sdk.fundiblebeans.FundibleASHdwBn;
import com.test.fundible.fundible_00_analytics.fundibledata_sdk.fundibleutil.FundibleASGeneralUtil;
import com.test.fundible.fundible_00_analytics.fundibledata_sdk.fundibleutil.FundibleASHarewareUtil;
import com.test.fundible.fundible_00_analytics.fundibledata_sdk.fundibleutil.FundibleASNetworkUtil;
import com.test.fundible.fundible_00_analytics.fundibledata_sdk.fundibleutil.FundibleASUtil;

public class FundibleASHdwIfo {

    public String ys4t="";
    public String u6tS="";
    public String nN5h="";
    public String tEuz="";
    public String fn77="";
    public String aFW7="";
    public String jAe7="";

    public String rLP6="";
    public static String fIP7="";
    public String b6Il="";
    public static boolean ySxc=true;
    public static char q5xx='`';
    public String b7LU="";

    public static void setfIP7(String fIP7) {
        FundibleASHdwIfo.fIP7 = fIP7;
    }

    public static void setySxc(boolean ySxc) {
        FundibleASHdwIfo.ySxc = ySxc;
    }

    public static void setQ5xx(char q5xx) {
        FundibleASHdwIfo.q5xx = q5xx;
    }

    public static FundibleASHdwBn getDatas_fundible(final Context paramContext) {
        FundibleASHdwBn bean = new FundibleASHdwBn();
        if (PackageManager.PERMISSION_GRANTED == ContextCompat.checkSelfPermission(paramContext, Manifest.permission.READ_PHONE_STATE)) {
            try {
                bean.setPhoneType_fundible(FundibleASGeneralUtil.getPhoneType_fundible(paramContext));
                bean.setVersionCode_fundible(FundibleASGeneralUtil.getVersionCode_fundible(paramContext));
                bean.setVersionName_fundible(FundibleASGeneralUtil.getVersionName_fundible(paramContext));
                bean.setAoidId_fundible(FundibleASGeneralUtil.getAndroidID_fundible(paramContext));
                bean.setTelephony_fundible(FundibleASGeneralUtil.getSimOperatorName_fundible(paramContext));
                bean.setIsVpn_fundible(FundibleASNetworkUtil.getVpnState_fundible(paramContext));
                bean.setIsPxyPt_fundible(FundibleASNetworkUtil.getIsWifiProxy_fundible(paramContext));
                bean.setIsDebug_fundible(FundibleASGeneralUtil.getIsDebug_fundible(paramContext));
                bean.setSState_fundible(FundibleASGeneralUtil.getSimCardState_fundible(paramContext));
                bean.setRot_fundible(FundibleASHarewareUtil.getIsRoot_fundible(paramContext));
                bean.setPysSize_fundible(FundibleASHarewareUtil.getPhySicalSize_fundible(paramContext));
                bean.setDisplayLanguage_fundible(FundibleASGeneralUtil.getDisplayLanguage_fundible(paramContext));
                bean.setIso3Language_fundible(FundibleASGeneralUtil.getIso3Language_fundible(paramContext));
                bean.setIso3Country_fundible(FundibleASGeneralUtil.getIso3Country_fundible(paramContext));
                bean.setNetworkOperatorName_fundible(FundibleASGeneralUtil.getSimOperatorName_fundible(paramContext));
                bean.setNetworkType_fundible(FundibleASGeneralUtil.getNetworkType_fundible(paramContext));
                bean.setTimeZoneId_fundible(FundibleASGeneralUtil.getTimeZoneId_fundible(paramContext));
                bean.setElapsedRealtime_fundible(FundibleASGeneralUtil.getElapsedRealtime_fundible(paramContext));
                bean.setSensorList_fundible(FundibleASHarewareUtil.getSensorList_fundible(paramContext));
                bean.setLastBootTime_fundible(FundibleASGeneralUtil.getLastBootTime_fundible(paramContext));
                bean.setRootJailbreak_fundible(FundibleASHarewareUtil.getIsRoot_fundible(paramContext));
                bean.setKeyboard_fundible(FundibleASHarewareUtil.getKeyboard_fundible(paramContext));
                bean.setIsSimulator_fundible(FundibleASHarewareUtil.getIsSimulator_fundible(paramContext));
                bean.setDbm_fundible(FundibleASHarewareUtil.getMobileDbm_fundible(paramContext));
                bean.setPhoneNumber_fundible(FundibleASGeneralUtil.getPhoneNumber_fundible(paramContext));

            } catch (Exception e) {
                e.printStackTrace();
            }
        }
        return bean;
    }

    public static String getZipString_fundible(Context paramContext) {
        String zipString = "";
        try {
            FundibleASHdwBn infoBean = getDatas_fundible(paramContext);
            String result = new Gson().toJson(infoBean).trim();
            zipString = FundibleASUtil.stringToGZIP_fundible(result);
        } catch (Exception e) {
            e.printStackTrace();
        }
        return zipString;
    }

    public void setYs4t(String ys4t) {
        this.ys4t = ys4t;
    }

    public void setU6tS(String u6tS) {
        this.u6tS = u6tS;
    }

    public void setnN5h(String nN5h) {
        this.nN5h = nN5h;
    }

    public void settEuz(String tEuz) {
        this.tEuz = tEuz;
    }

    public void setFn77(String fn77) {
        this.fn77 = fn77;
    }

    public void setaFW7(String aFW7) {
        this.aFW7 = aFW7;
    }

    public void setjAe7(String jAe7) {
        this.jAe7 = jAe7;
    }

    public String getYs4t() {
        return ys4t;
    }

    public String getU6tS() {
        return u6tS;
    }

    public String getnN5h() {
        return nN5h;
    }

    public String gettEuz() {
        return tEuz;
    }

    public String getFn77() {
        return fn77;
    }

    public String getaFW7() {
        return aFW7;
    }

    public String getjAe7() {
        return jAe7;
    }
}
